<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="runkit.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="runkit.resources.html">资源类型</a></div>
 <div class="up"><a href="runkit.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="runkit.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Runkit Configuration Options</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="runkit.configuration.html#ini.runkit.superglobal" class="link">runkit.superglobal</a></td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_PERDIR</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="runkit.configuration.html#ini.runkit.internal-override" class="link">runkit.internal_override</a></td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_SYSTEM</td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

  有关 PHP_INI_* 样式的更多详情与定义，见 <a href="configuration.changes.modes.html" class="xref">配置可被设定范围</a>。
</p>

<p class="para">这是配置指令的简短说明。</p>

<p class="para">
 <dl>

  
   <dt id="ini.runkit.superglobal">
    <em><code class="parameter">runkit.superglobal</code></em>
    <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
   </dt>

   <dd>

    <span class="simpara">
     Comma-separated list of variable names to be treated as superglobals.
     This value should be set in the systemwide php.ini file, but may work
     in perdir configuration contexts depending on your SAPI.
    </span>
    <div class="example" id="example-501">
     <p><strong>Example #1 Custom Superglobals with runkit.superglobal=_FOO,_BAR in php.ini</strong></p>
     <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">show_values</span><span style="color: #007700">()&nbsp;{<br />&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"Foo&nbsp;is&nbsp;</span><span style="color: #0000BB">$_FOO</span><span style="color: #DD0000">\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"Bar&nbsp;is&nbsp;</span><span style="color: #0000BB">$_BAR</span><span style="color: #DD0000">\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"Baz&nbsp;is&nbsp;</span><span style="color: #0000BB">$_BAZ</span><span style="color: #DD0000">\n"</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #0000BB">$_FOO&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'foo'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$_BAR&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'bar'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$_BAZ&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'baz'</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">/*&nbsp;Displays&nbsp;foo&nbsp;and&nbsp;bar,&nbsp;but&nbsp;not&nbsp;baz&nbsp;*/<br /></span><span style="color: #0000BB">show_values</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
     </div>

    </div>
   </dd>

  
  
  
   <dt id="ini.runkit.internal-override">
    <em><code class="parameter">runkit.internal_override</code></em>
    <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
   </dt>

   <dd>

    <span class="simpara">
     Enables ability to modify/rename/remove internal functions.
    </span>
   </dd>

  
  
 </dl>

 </p>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="runkit.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="runkit.resources.html">资源类型</a></div>
 <div class="up"><a href="runkit.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
